package com.cloud.elm.feign;

import com.cloud.elm.feign.callback.DaFeignClientCallback;
import com.cloud.elm.po.DeliveryAddress;
import com.cloud.elm.utils.response.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "deliveryaddress-server", fallback = DaFeignClientCallback.class)
public interface DaFeignClient {

    @GetMapping("/elm/DeliveryAddressController/getDeliveryAddressById/{daId}")
    ResultBody<DeliveryAddress> getDeliveryAddressById(@PathVariable("daId") Integer daId);
}
